package com.qf.controller;

import com.qf.pojo.resp.BaseResult;
import com.qf.service.GoodsDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/showGood")
public class GoodsDetailController {

    @Autowired
    GoodsDetailService goodsDetailService;

    @RequestMapping(value = "/detail")
    public BaseResult showGood(Integer gid){
        BaseResult baseResult = goodsDetailService.showGood(gid);
        System.out.println(baseResult);
        return baseResult;
    }
}
